package com.yuanlrc.hotel.restaurantPicture.domain;

import com.yuanlrc.common.annotation.Excel;
import com.yuanlrc.common.core.domain.BaseEntity;
import com.yuanlrc.hotel.restaurant.domain.Restaurant;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 餐厅图库对象 ylrc_restaurant_picture
 * 
 * @author yuanlrc
 * @date 2020-11-18
 */
public class RestaurantPicture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 图片名称 */
    @Excel(name = "图片名称")
    private String name;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String picture;

    /** 图片所属餐厅id */
    @Excel(name = "图片所属餐厅id")
    private Long fid;

    /** 餐厅对象 */
    @Excel(name = "餐厅",targetAttr = "name",type = Excel.Type.EXPORT)
    private Restaurant restaurant;

    public Restaurant getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(Restaurant restaurant) {
        this.restaurant = restaurant;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("picture", getPicture())
            .append("fid", getFid())
            .toString();
    }
}
